package com.salim.leetcode.$136;

public class SingleNumber {
    //异或
    public int singleNumber(int[] nums) {
        int a = 0;
        for(int i:nums){
            a ^= i;
        }
        return a;
    }

}
